//
//  VView.h
//  OCJavaScript
//
//  Created by xiaerfei on 2019/7/30.
//  Copyright © 2019 xiaerfei. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <JavaScriptCore/JavaScriptCore.h>

@protocol UIViewJavaScriptMethods <JSExport,NSObject>
@property(nonatomic) CGRect            frame;
@property (nonatomic, strong) NSString *idName;

JSExportAs(backgroundColor, - (void)backgroundColor:(NSString *)color);
JSExportAs(addSubview, - (void)addSubview:(UIView *)view);
@end



@interface VView : UIView<UIViewJavaScriptMethods>
@property (nonatomic, strong) NSString *idName;
@end

